From d46869e28adebf88db7e77324d61c49d68b290bd Mon Sep 17 00:00:00 2001 From: "vh249@arcadians.cl.cam.ac.uk" Date: Mon, 21 Mar 2005 16:35:25 +0000 Subject: [PATCH] bitkeeper revision 1.1159.272.6 (423ef7cda7Kpa_XoIQvmnA23rDLP2Q) remove some bogus test while removing device Signed-off-by: Vincent Hanquez --- linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c index f9265e74ec..8dce5bd8ce 100644 --- a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c +++ b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c @@ -365,7 +365,7 @@ static int xlvbd_init_device(vdisk_t *xd) */ static int xlvbd_remove_device(int dev16) { - int i, rc = 0, minor = MINOR(dev16); + int i, rc = 0; struct gendisk *gd; struct block_device *bd; struct xlbd_disk_info *di; @@ -393,7 +393,6 @@ static int xlvbd_remove_device(int dev16) goto out; } - BUG_ON(minor != gd->first_minor); /* The VBD is mapped to an entire unit. */ invalidate_partition(gd, 0); -- 2.30.2